package com.raven.craft.code.generator.config;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Collections;
import java.util.Set;

/**
 * @author raven
 * @date 2019-05-31 18:52
 */
@Getter
@Setter
@ToString
@ConfigurationProperties(prefix = "generator.mysql")
public class MysqlProperties {

    private String host = "localhost";
    private Integer port = 3306;
    private String username;
    private String password;
    private String database;

    private String tablePattern;
    private Set<String> includeTables = Collections.emptySet();
    private Set<String> excludeTables = Collections.emptySet();
    private Set<String> includeColumns = Collections.emptySet();
    private Set<String> excludeColumns = Collections.emptySet();

}
